import request from '@/utils/request'
/**
 * 车辆管理列表-分页
 */
export const vehiclePagingListApi = (data) => {
  return request({
    url: "/owners/vehicle",
    params: data
  })
}
/**
 * 车辆管理列表-删除
 */
export const delVehicleListApi = (id) => {
  return request({
    url: `/owners/vehicle/${id}`,
    method: "DELETE",

  })
}
/**
 * 车辆管理列表-添加
 */
export const addVehicleListApi = (data) => {
  return request({
    method: 'post',
    url: "/owners/vehicle",
    data
  })
}
/**
 * 车辆管理列表-详情-回显
 */
export const showVehicleDetailsApi = (id) => {
  return request({
    url: `/owners/vehicle/${id}`,

  })
}
/**
 *  车辆管理-修改
 */
export const editVehicleDetailsApi = (data) => {
  return request({
    url: `/owners/vehicle/${data.id}`,
    method: 'put',
    data
  })
}